package com.ruoyi.system.statis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.statis.mapper.ServiceStatisSaleMapper;
import com.ruoyi.system.statis.domain.ServiceStatisSale;
import com.ruoyi.system.statis.service.IServiceStatisSaleService;
import com.ruoyi.common.core.text.Convert;

/**
 * 销售统计Service业务层处理
 * 
 * @author Administrator
 * @date 2021-03-06
 */
@Service
public class ServiceStatisSaleServiceImpl implements IServiceStatisSaleService 
{
    @Autowired
    private ServiceStatisSaleMapper serviceStatisSaleMapper;

    /**
     * 查询销售统计
     * 
     * @param id 销售统计ID
     * @return 销售统计
     */
    @Override
    public ServiceStatisSale selectServiceStatisSaleById(Long id)
    {
        return serviceStatisSaleMapper.selectServiceStatisSaleById(id);
    }

    /**
     * 查询销售统计列表
     * 
     * @param serviceStatisSale 销售统计
     * @return 销售统计
     */
    @Override
    public List<ServiceStatisSale> selectServiceStatisSaleList(ServiceStatisSale serviceStatisSale)
    {
        return serviceStatisSaleMapper.selectServiceStatisSaleList(serviceStatisSale);
    }

    /**
     * 新增销售统计
     * 
     * @param serviceStatisSale 销售统计
     * @return 结果
     */
    @Override
    public int insertServiceStatisSale(ServiceStatisSale serviceStatisSale)
    {
        return serviceStatisSaleMapper.insertServiceStatisSale(serviceStatisSale);
    }

    /**
     * 修改销售统计
     * 
     * @param serviceStatisSale 销售统计
     * @return 结果
     */
    @Override
    public int updateServiceStatisSale(ServiceStatisSale serviceStatisSale)
    {
        return serviceStatisSaleMapper.updateServiceStatisSale(serviceStatisSale);
    }

    /**
     * 删除销售统计对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteServiceStatisSaleByIds(String ids)
    {
        return serviceStatisSaleMapper.deleteServiceStatisSaleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除销售统计信息
     * 
     * @param id 销售统计ID
     * @return 结果
     */
    @Override
    public int deleteServiceStatisSaleById(Long id)
    {
        return serviceStatisSaleMapper.deleteServiceStatisSaleById(id);
    }
}
